//
//  ZMWkwebViewVC.h
//  YYFMMall
//
//  Created by chenzm on 2019/8/24.
//  Copyright © 2019 YuYou1. All rights reserved.
//

#import "BaseVC.h"
#import <WebKit/WKWebView.h>

#define WebView_UserAgent @"YYFMMall"
typedef NS_ENUM(NSInteger, NaviType) {
    NaviTypeHiddenNav = 0,//不显示导航栏
    NaviTypeShowDefNav,//显示默认导航栏
};
@interface ZMWkwebViewVC : BaseVC

@property (nonatomic, strong) WKWebView *wkWebView;

@property (nonatomic,copy) NSString *navTitle;
/// 导航栏显示样式
@property (nonatomic, assign) NaviType navType;
/// 页面转换类型
@property (assign, nonatomic) ViewTransitions vTransitions;

@property (copy,nonatomic)void (^successfulBlock)(NSDictionary *okDic);

/// 加载纯外部链接网页
- (void)loadWebURLSring:(NSString *)string;

/// 加载本地网页
- (void)loadWebHTMLSring:(NSString *)string;

/**
 加载外部链接POST请求(注意检查 XFWKJSPOST.html 文件是否存在 )
 @param string 需要POST的URL地址
 @param postData post请求块
 */
- (void)POSTWebURLSring:(NSString *)string postData:(NSString *)postData;

@end
